-- GENERATED SPELL FOR [Thrym] --


function spell0_29895(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(28167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29895', 632, 1)
end

function Sorts_29895(pUnit, Event)
local choix_sorts_29895 = math.random(0, 0)
if choix_sorts_29895 == 0 then
pUnit:RegisterEvent('spell0_29895', 1, 1)
end
end

function mob29895_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29895', math.random(1500, 3000), 1)
end

function mob29895_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29895_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29895_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29895, 1, 'mob29895_Action')
RegisterUnitEvent(29895, 2, 'mob29895_Leave')
RegisterUnitEvent(29895, 3, 'mob29895_Kill')
RegisterUnitEvent(29895, 4, 'mob29895_Die')
